package com.atguigu.common.constant;

import lombok.Getter;

public interface WareConstant {

    @Getter
    enum PurchaseStatusEnum {
        CREATE(0, "新建"),
        ASSIGNED(1, "已分配"),
        RECEIVED(2, "已领取"),
        COMPLETED(3, "已完成"),
        HAS_ERROR(4, "有异常");

        PurchaseStatusEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }

        private final int code;
        private final String message;
    }

    @Getter
    enum PurchaseDetailStatusEnum {
        CREATE(0, "新建"),
        ASSIGNED(1, "已分配"),
        PROGRESSING(2, "正在采购"),
        COMPLETED(3, "已完成"),
        HAS_ERROR(4, "采购失败");

        PurchaseDetailStatusEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }

        private final int code;
        private final String message;
    }

    @Getter
    enum WareOrderTaskDetailLockStatusEnum {
        /**
         * 1-已锁定  2-已解锁  3-扣减
         */
        LOCKED(1, "已锁定"),
        RELEASED(2, "已解锁"),
        DEDUCTED(3, "扣减");


        WareOrderTaskDetailLockStatusEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }

        private final int code;
        private final String message;
    }
}
